import React from "react"
import {request} from './request.js'
import {Todo, TodoList} from './Impl/AppImp'
interface PropType{
    tododata:TodoList
}
export default (props:PropType)=>{
    // request("http:/ww.xx",{data:{}});
    let str:string=request("http://xxx.com",{data:{}});
    // let str2:string=request("123",{data:{}});
    return <>
        <h2>List组件</h2>
        <div>
            {props.tododata.map((t:Todo)=>{
                return <p>{t.id}</p>
            })}
        </div>
    </>
}